set the rect of cast obj_key = rect(0,0,(the right of bit_rect - the left of bit_rect) - 50,((the bottom of bit_rect - 28) - (the top of bit_rect + 18)))
set the castnum of sprite 38 = the number of cast obj_key
global clipcast
set clipcast = obj_key
spriteBox 38, the left of bit_rect + 25, the top of bit_rect + 18, the right of bit_rect, the bottom of bit_rect
-- if the ink of sprite 38 <> 36 then set the ink of sprite 38 = 36
set the_center = (the right of bit_rect - the left of bit_rect) / 2
spritebox 40, the left of bit_rect + the_center - 25, the bottom of bit_rect - 23,the left of bit_rect + the_center - 25 + the width of sprite 40, the bottom of bit_rect - 23 + the height of sprite 40
spritebox 41, the left of bit_rect + the_center + 5, the bottom of bit_rect - 23, the left of bit_rect + the_center + 5 + the width of sprite 41, the bottom of bit_rect - 23 + the height of sprite 41